package net.lijingye.education.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class CourseVO {
    @JSONField(name = "id", ordinal = 0, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String id;
    @JSONField(name = "name", ordinal = 1, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String name;
    @JSONField(name = "credit", ordinal = 2, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String credit;
    @JSONField(name = "weekTime", ordinal = 3, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String weekTime;

    public CourseVO(String id, String name, String credit, String weekTime) {
        this.id = id;
        this.name = name;
        this.credit = credit;
        this.weekTime = weekTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCredit() {
        return credit;
    }

    public void setCredit(String credit) {
        this.credit = credit;
    }

    public String getWeekTime() {
        return weekTime;
    }

    public void setWeekTime(String weekTime) {
        this.weekTime = weekTime;
    }

    @Override
    public String toString() {
        return "CourseVO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", credit='" + credit + '\'' +
                ", weekTime='" + weekTime + '\'' +
                '}';
    }
}
